var m=Object.defineProperty;var h=(s,r,t)=>r in s?m(s,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[r]=t;var i=(s,r,t)=>(h(s,typeof r!="symbol"?r+"":r,t),t);var N=(s,r,t)=>new Promise((u,n)=>{var l=e=>{try{o(t.next(e))}catch(a){n(a)}},c=e=>{try{o(t.throw(e))}catch(a){n(a)}},o=e=>e.done?u(e.value):Promise.resolve(e.value).then(l,c);o((t=t.apply(s,r)).next())});import{Auth as E}from"./Auth-4bb118e1.js";import{fc as T,ab as p,bS as P}from"./index-68beeb37.js";class f extends T{constructor(){super("GPN_Auther");i(this,"Docs0",`
  #### 帮助
  - 按照节点表单的字段作为抄送人.
  - 通常是在节点表单上加一个字段,这个字段存储的是人员账号，多个人员使用逗号分开.
  #### 运行图例
  - @liang.

`);i(this,"Docs1",`
  #### 帮助
  - 自动抄送给要绑定的人员.
`);i(this,"Docs2",`
  #### 帮助
  - 按照绑定的部角色下的人员集合作为抄送人.
  - 有一个规则
  
`);this.PageTitle="新增授权人",this.ForEntityClassID="TS.Port.Auth"}Init(){this.AddGroup("A","请选择规则");const t="SELECT No,Name,ParentNo FROM Port_Dept",u="SELECT No,Name,Tel FROM Port_Emp WHERE FK_Dept=@Key";this.SelectItemsByTreeEns("1","选择授权人",this.Docs1,!1,t,"0",u,"@No=账号@Name=名称@Tel=电话")}GenerSorts(){return N(this,null,function*(){return Promise.resolve([])})}Save_TextBox_X(t,u,n,l,c){return N(this,null,function*(){let o="";o=this.RequestVal("RefPKVal");const e=new E;if(e.MyPK=p.No+"_"+n,(yield e.IsExits())==!0){alert("人员["+l+"]已经被选择.");return}e.Auther=o,e.AuthType=0,e.AutherToEmpNo=n,e.AutherToEmpName=l,e.RDT=P.CurrentDate,yield e.Insert();let a="";return a="/@/WF/Comm/EnOnly.vue?EnName=TS.Port.Auth&PKVal="+e.MyPK,"url@"+a})}}export{f as GPN_Auther};
